<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.js"></script>
</head>

<body class="container">
    <h3 class="mb-4">混合搭配</h3>
    <!--在小于md型的设备上显示为一个全宽列和一个半宽列，在大于等于md型设备上显示为一列，分别占8份和4份-->
    <div class="row">
        <div class="col-12 col-md-8 border py-3 bg-light">.col-12 .col-md-8</div>
        <div class="col-6 col-md-4 border py-3 bg-light">.col-6 .col-md-4</div>
    </div>
    <!--在任何类型的设备上，列的宽度都是占50%-->
    <div class="row">
        <div class="col-6 border py-3 bg-light">.col-6</div>
        <div class="col-6 border py-3 bg-light">.col-6</div>
    </div>
</body>

</html>